<template>
  <fieldset>
    <legend>Child2组件</legend>
    <h1>Child2组件</h1>
    <button @click="send2">点击传递给Child</button>
  </fieldset>
</template>

<script>
export default {
  data() {
    return {
      j: "口服液",
    };
  },
  methods: {
    send2() {
      this.$bus.$emit("get2", this.j);
    },
  },
};
</script>

<style scoped>
h1 {
  color: skyblue;
}
</style>
l
